﻿using System;
using System.Collections.Generic;
using System.Globalization;
using ConsoleApplication1;
using ConsoleApplication1.Properties;

namespace ConsoleApplication1
{
    public class Monster
    {
        static int number;
        public Monster(int id,string name,int magicpower,int power,int height,int weight,List<Weapon> weapons,List<Items> dropitems)
        {
            this.id = id;
            this.name = name;
            this.magicpower = magicpower;
            this.Power = power;
            this.Height = height;
            this.Weight = weight;
            this.Dropitems = dropitems;
            this.Weapons = weapons;
            number += 1;
        }

        
        private int id=0;
        public int Id
        {
            get { return id; }
            set { id = value; }
        }
        private string name="";

        public string Name
        {
            get { return name; }
            set { name = value; }
        }
        
        private int magicpower = 0;

        public int Magicpower
        {
            get { return magicpower; }
            set { magicpower = value; }
        }
        private int power = 0;

        public int Power
        {
            get { return power; }
            set { power = value; }
        }

        private int height = 0;

        public int Height
        {
            get { return height; }
            set { height = value; }
        }

        private int weight = 0;

        public int Weight
        {
            get { return weight; }
            set { weight = value; }
        }

        private List<Weapon> weapons = new List<Weapon>();

        public List<Weapon> Weapons
        {
            get { return weapons; }
            set { weapons = value; }
        }

        private List<Items> dropitems = new List<Items>();

        public List<Items> Dropitems
        {
            get { return dropitems; }
            set { dropitems = value; }
        }

        void drop_items()
        {
            Random droprand=new Random();
            int dropnum = droprand.Next(0, 5);
            
        }
    }

    class monsters
    {
        static void monsterslist()
        {
            List<Items> yewang_dropitem=new List<Items>();
            Items yewangtougu=new Items(1,"夜王头骨",10);
            yewang_dropitem.Add(yewangtougu);
            List<Weapon> yewang_weapon=new List<Weapon>();
            Weapon yewangguzhang=new Weapon(1,"夜王骨杖",30,50,20);
            Monster yewang=new Monster(1,"夜王",120,100,180,32,yewang_weapon,yewang_dropitem);
        }
    }
}